package com.funcas.pcloud.upms.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.TableName;
import com.funcas.pcloud.common.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * @author funcas
 * @version 1.0
 * @date 2018年04月21日
 */
@TableName("tb_unit")
@Data
public class Unit extends BaseEntity<Long> {
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long parentId;
    private String orgCode;
    private String name;
    private Integer sort;
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long master;
    private String phone;
    private Integer state;
    private String remarks;
    private Integer delFlag;
    private Integer leaf;
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long creatorId;
    private Date ctime;
    private Date mtime;
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long modifierId;

}
